﻿using System;

namespace housingsafety.server.Attributes
{
    /// <summary>
    /// 添加上传文件按钮
    /// </summary>
    [AttributeUsage(AttributeTargets.Method)]
    public class AddSwaggerFileUploadButtonAttribute : Attribute
    {
        /// <summary>
        /// 按钮个数
        /// </summary>
        public int Count { get; private set; }

        /// <summary>
        /// 构造函数
        /// </summary>
        public AddSwaggerFileUploadButtonAttribute() : this(1)
        {

        }
        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="count">按钮个数</param>
        public AddSwaggerFileUploadButtonAttribute(int count)
        {
            Count = count;
        }
    }
}
